<template>
<!-- 报案历史 -->
 <el-table
    :data="history.result"
    border   
   style="width: 100%"
   height=400
   >
    <el-table-column      
     type="index"     
      width="80"  
     >
    </el-table-column>
     <el-table-column
      prop="REPORTINFORMATION_ID"
      label="报案号"
      width="250"
     >
    </el-table-column>
    <el-table-column
      prop="REPORTINFORMATION_IDENTITY"
      label="报案人员身份"
      width="250"
     >
    </el-table-column>
    <el-table-column
      prop="REPORTINFORMATION_CAUSE"
      label="报案事由"
      width="550"
     >
    </el-table-column>
   
     <el-table-column     
      label="操作"
      width="100">
      <template scope="scope">      
        <el-button type="text" size="media" @click="gocheck(scope.row.REPORTINFORMATION_ID,scope.row.SALEDETAILNO,scope.row.PRODUCTNAME)"><i class="el-icon-edit"> 追加报案</i></el-button>
      </template>

</el-table-column>
</el-table>
</template>
<script>
export default{
      props: {
            history: {
                type: Object,
                default: {}
            }
      },
      methods:{
             gocheck(id, sid,type) {  
                this.$router.push({
                    path: 'addform',
                     query: {
                        id: id,
                        sid: sid,
                        type:type
                    }
                });
                 
            }
      }
}
</script>